<template>
  <div>
    <i-dialog
      :title="'查询物联卡'"
      :visible="visible"
      width="500px"
      :close-on-click-modal="false"
      @close="outerClose"
    >
      <i-form
        :items="formItems"
        :model="form"
        ref="form"
        label-width="95px"
        class="demo-form"
      >
      </i-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="outerClose">确定</el-button>
      </span>
    </i-dialog>
  </div>
</template>
<script>
export default {
  name: 'CoupletCard',
  data() {
    return {
      form: {
        coupletCard: this.coupletCard.coupletCard,
        userstatus: this.coupletCard.userstatus,
      },
      formItems: [
        {
          type: 'detail',
          value: 'coupletCard',
          label: '物联卡号',
          clearable: true,
        },
        {
          type: 'detail',
          value: 'userstatus',
          label: '网卡状态',
          clearable: true,
        },
      ],
    }
  },
  props: {
    visible: {
      type: Boolean,
      required: true,
    },
    coupletCard: {
      type: Object,
      default: () => {},
    },
  },
  methods: {
    outerClose() {
      this.$emit('update:visible', false)
    },
  },
}
</script>
